package com.eight.group.mapper;

import com.eight.group.pojo.Permission;

import java.util.HashMap;
import java.util.List;

public interface PermissionMapper {

    //根据条件分页查询
    List<Permission> findPageByCondition(String queryString);
    //新增权限
    void add(Permission permission);

    //编辑权限
    void edit(Permission permission);
    //根据permissionId查询权限信息
    Permission findById(Integer id);
    //根据permissionId删除中间表t_user_role表数据
    void deleteRoleAndPermissionByRoleId(Integer id);
    //根据permissionId删除中间表t_permission表数据
    void delete(Integer id);
}
